// src/api/user.js

import service from '@/utils/request'

export function register(data) {
  return service({
    url: '/user/auth/register',
    method: 'post',
    data
  })
}

// src/api/user.js
export function login(data) {
  return service({
    url: '/user/auth/login', // 加上 /api 前缀
    method: 'post',
    data
  })
}

export function getUserList() {
  return service({
    url: '/user/list',
    method: 'get'
  })
}

export function getSkills() {
  return service({
    url: `/skills/list`,
    method: 'get'
  })
}

export function passStatus(params) {
  return service({
    url: `/user/status/pass`,
    method: 'patch',
    params
  })
}

export function rejectStatus(params) {
  return service({
    url: `/user/status/reject`,
    method: 'patch',
    params
  })
}